"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Validate = void 0;
const class_validator_1 = require("../class-validator");
class Validate {
    transform(value, dto) {
        const errors = (0, class_validator_1.validate)(value, dto);
        if (errors.length > 0) {
            throw { errors };
        }
    }
}
exports.Validate = Validate;
